package org.ilead.iserve.common.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class EmailAuthenticator extends Authenticator {
	protected String id = "";  
    protected String password = "";  
      
    public EmailAuthenticator(String id, String password) {  
        this.id = id;  
        this.password = password;  
    }  
      
    protected PasswordAuthentication getPasswordAuthentication() {  
        return new PasswordAuthentication(id, password);  
    }  
}
